Title: Replication Package for "The Politics of Promotion in China's Foreign Policy Bureaucracy"

Article Author: Tyler Jost, Yucong Li 

Corresponding Author: Tyler Jost

README Author: Tyler Jost

Journal: The China Quarterly

Date: April 26, 2025

Computing Environment: MacOS Sonoma 14.7

Data Source: Original data collection by authors. 

Software: R (Version 4.3.1)

Required Libraries: here (1.0.1), sandwich (3.0.2), lmtest (0.9.40), dplyr (1.1.3), tidyr (1.3.0), reshape2 (1.4.4), ggplot2 (3.5.1), car (3.1.2), interplot (0.2.3), stargazer (5.2.3), gridExtra (2.3), pscl (1.5.5.1), xtable (1.8.4), stringr (1.5.0), countrycode  (1.5.0)

Note: To replicate all analyses including figures and tables, (1) download all data files,    (2) change the working directory as needed in the first R file, and (3) run all code files in numerical order.

Runtime: Approximately 10 minutes.

*** Main Datasets ***

mfa_personnel.RData (Original dataset of senior Ministry of Foriegn Affairs officials in the People's Republic of China, arranged by individual. For details, please see accompanying appendix.)

mfa_appointments.RData (Original dataset of senior Ministry of Foriegn Affairs officials in the People's Republic of China, arranged by postings. For details, please see accompanying appendix.)

prc_fa_leadership_background.csv (Original dataset of leaders of departments, ministries, and offices in the People's Republic of China, including whether each had a background in the Ministry of Foreign Affairs or International Liaison Department.)

*** Supplementary Data ***

dyadic_mid_4.02.csv (Dyadic Militarized Interstate Disputes Data, Version 4.02)
prc_treaties.RData (original data on the international treaties of the People's Republic of China)
 
Note: R programming files contain organized sections. Use the following shortcuts to better navigate R.

1_df_build.R
- Creates the datafames for the main and appendix analysis

2_descriptives.R
- Reports descriptive calculations for Figure 1, Table 1, and Figure 2 

3_analysis.R
- Performs the main promotion analyses

4_appendix_analysis.R
- Performs the appendix analyses

*** Sources ***
Maoz, Zeev, Paul L. Johnson, Jasper Kaplan, Fiona Ogunkoya, and Aaron Shreve. 2018. “The Dyadic Militarized Interstate Disputes (MIDs) Dataset Version 3.0: Logic, Characteristics, and Comparisons to Alternative Datasets.” Journal of Conflict Resolution 63:3: 811–835.

